use Rich table for agents list output#9
Open
ayaan-kapoor wants to merge 1 commit into
Open
Conversation
Greptile SummaryThis PR replaces the tab-separated
Confidence Score: 5/5Safe to merge — the change is purely cosmetic output formatting with no logic, data, or API contract changes. The only changed code is the human-readable rendering path (skipped entirely on --json). User-supplied data is consistently escaped, the hardcoded markup for active status is correct given Rich's default markup=True on table columns, and the existing pagination / error-handling paths are untouched. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[list_agents called] --> B{json_output?}
B -- yes --> C[print_json and return]
B -- no --> D{response.agents empty?}
D -- yes --> E[print 'No agents found.']
D -- no --> F[Build Rich Table\nbox=None, pad_edge=False]
F --> G[Add columns:\nID dim / NAME / MODEL / TEAM dim / ACTIVE center]
G --> H[For each agent:\nescape_markup user fields\nhardcoded markup for active status]
H --> I[table.add_row]
I --> J[console.print table]
E --> K{response.next_cursor?}
J --> K
K -- yes --> L[print next cursor hint]
K -- no --> M[Done]
L --> M
Reviews (1): Last reviewed commit: "use Rich table for agents list output" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replace the tab-separated output in
gumloop agents listwith a proper Rich table.Why
The current output is hard to read when agent names or IDs are long — columns don't align and there's no visual separation. Rich is already a dependency and used throughout the CLI, so this is a zero-cost improvement.
Active agents now show in green, inactive ones are dimmed, making status easy to scan at a glance.
Before
After
(columns align, active/inactive colored)